﻿@{
    ViewBag.Title = "分店账号管理";
    ViewBag.PathToBtn = "/McAccounts/BranchList";
    ViewBag.TextBtn = "刷新";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                分店账户列表
            </div>
            <div class="panel-body">
                <div class="dataTable_wrapper">
                    <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                        <thead>
                            <tr>
                                <th>所属店铺</th>
                                <th>名称</th>
                                <th>电话</th>
                                <th>用户名</th>
                                <th>绑定微信用户</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>                           
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

@section javascript{
    <script src="/Content/admin/dist/js/pagingHelper.js"> </script>
    <script type="text/javascript">
        var dataParams = {};
        var serverProcessPath = "/McAccounts/BranchListing";
        var showColumns = [
            { data: "ShopName" },
            { data: "DisplayName" },
            { data: "Mobile" },
            { data: "UserName" },
            { data: "WechatUserNickName" },
            { data: "Action" }
        ];
        pagingHelper.Paging(serverProcessPath, dataParams, showColumns);

        function updateData(id) {
            document.location.href = '/McAccounts/BranchUpdate/' + id;
        }
    </script>
}